package de.justphil.tcg.tcgserver.commons.exceptions;

public class TCGException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6274148352956614139L;
	
	private final Object extra;
	
	public TCGException(Throwable t) {
		super(t);
		this.extra = null;
	}
	
	public TCGException(String errorKey) {
		this(errorKey, null);
	}
	
	public TCGException(String errorKey, Object extra) {
		super(errorKey);
		this.extra = extra;
	}

	public Object getExtra() {
		return extra;
	}

}
